$(function() {
	$(document).find(".submit-data-number").each(function() {
		$(this).html($("#submit_data_number").val());
	});
});

var fixed;

function startCountdown(fn,args)    
{    
    fn.apply(this, args);  
}    

$(function() {

	var servertime = $("#servertime").val();
	var clientNow = Date.parse(new Date())/1000;
	fixed = servertime - clientNow;
	$(document).find(".count-down-timer").each(
			function() {
				var subdate = $(this).attr("title");
				subdate = subdate - fixed;
				var expiredate = new Date(subdate * 1000);
				var callback_func = "timeover_"
						+ $(this).attr("id").replace("countdown_", "");
				var countdown_func = "start_"
					+ $(this).attr("id").replace("countdown_", "");
				startCountdown(eval(countdown_func),[$(this), expiredate, callback_func]);
			});
});